function CustomError(res,message,statusCode) {

  this.res = res || 'Forget to define the res'
  this.message = message || 'Forget to define the message';
  this.statusCode = statusCode || 0
  
  this.name = "CustomError";
  this.stack = (new Error()).stack;
}
CustomError.prototype.name = "CustomError";
CustomError.prototype = Object.create(Error.prototype);
CustomError.prototype.constructor = CustomError;

module.exports = {
  CustomError
}
// 错误状态码说明
let code = {
  "-1":"不是错误不处理",
  "0":"未定义",
  "1":"网络超时",
  "2":"腾讯云回调resolve,但是没有身份信息",
}